package com.nju.galaxywalker.listener;



import com.nju.galaxywalker.ShopActivity;

import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.view.View;

public class ShopListener implements OnClickListener, android.view.View.OnClickListener {

	private Context context;
	private String userid;
	@Override
	public void onClick(DialogInterface dialog, int which) {
		// TODO Auto-generated method stub
		Intent intent = new Intent();
		intent.setClass(context, ShopActivity.class);
		intent.putExtra("userid", userid);
		context.startActivity(intent);
	}
	public void onClick(View v) {
		Intent intent = new Intent();
		intent.setClass(context, ShopActivity.class);
		intent.putExtra("userid", userid);
		context.startActivity(intent);
	}
	public ShopListener(Context context,String userid){
		this.context=context;
		this.userid=userid;
		
	}

}
